/*
 * Util.h
 *
 *  Created on: 30/04/2011
 *      Author: Rafael
 */

#ifndef UTIL_H_
#define UTIL_H_

#include <SDL/SDL.h>
#include <string>
#include <vector>
#include <fstream>
#include <sstream>
using namespace std;

#ifdef WINDOWS
    #include <direct.h>
    #define GetCurrentDir _getcwd
#else
    #include <unistd.h>
    #define GetCurrentDir getcwd
#endif

class Util {
public:
	Util();
	virtual ~Util();
	static vector<string> breakString(string str, char ch);
	static vector<string> breakString(string str, string ch);
	static void GetTextFromFile(char** text, const char* filename);
	static string IntToString(int i);
	static SDL_Rect newSDL_Rect( int xs,int ys, int dx,int dy );
	static string getPath();
	static SDL_Surface *createTransparentSurface(SDL_Surface* src, int width, int height);
};

#endif /* UTIL_H_ */
